<!-- /admin/template/system/code_update.htm :: 2010-02-23 :: hamhaja -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
	document.forms["update_form"].elements["cd_pname"].focus();

	var container1 = $("div#lay_error_container1");
	$("form[name=update_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li",
		rules: {
			cd_code: {
				uppernum: true,
				minlength: 3
			}
		}
	});
});
//]]>
</script>

<form name="update_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />
<input type="hidden" name="cd_cgcode" value="<?=$code_record['cd_cgcode']?>" />
<input type="hidden" name="cd_code" value="<?=$code_record['cd_code']?>" />

	<table class="form2">
	<col width="20%" /><col width="30%" /><col width="20%" /><col width="30%" />
	<tr>
		<th>코드그룹</th>
		<td class="disabled"><?=$group_record['cg_code']?></td>
		<th>코드그룹명</th>
		<td class="disabled"><?=$group_record['cg_pname']?></td>
	</tr>
	<tr>
		<th>코드</th>
		<td class="disabled"><?=$code_record['cd_code']?></td>
		<th>출력순서</th>
		<td><?=$Html->select_form('cd_sort', range(1, $code_sort), $code_record['cd_sort'], '_value', '_value')?></td>
	</tr>
	<tr>
		<th>코드명</th>
		<td colspan="3"><input type="text" name="cd_pname" class="full required" maxlength="64" title="코드명을 입력하세요." value="<?=$code_record['cd_pname']?>" /></td>
	</tr>
	<tr>
		<th>추가정보1</th>
		<td colspan="3"><input type="text" name="cd_add1" class="full" value="<?=$code_record['cd_add1']?>" /></td>
	</tr>
	<tr>
		<th>추가정보2</th>
		<td colspan="3"><input type="text" name="cd_add2" class="full" value="<?=$code_record['cd_add2']?>" /></td>
	</tr>
	<tr>
		<th>출력여부</th>
		<td colspan="3"><?=$Html->flag_button('cd_display', $code_record['cd_display'], '', array('출력하지 않습니다', '출력합니다', true))?></td>
	</tr>
	</table>

	<div id="lay_error_container1" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type="submit" class="button" value="수정" />
		<input type="reset" class="button" value="초기화" />
		<input type="button" class="button" value="닫기" onclick="self.close();" />
		<input type="button" class="button" value="추가페이지" onclick="g_goto('<?=$g_job?>', 'insert_form', '<?=$group_record['cg_code']?>');" />
	</div>

</form>